import { appAxios } from "../hooks/request/index.js";
// 分类管理-新增
export function categoryMgtAdd (data) {
    return appAxios({ method: 'POST', url: '/category/add', data: { ...data } })
}
// 分类管理-编辑
export function categoryMgtEdit (data) {
    return appAxios({ method: 'POST', url: '/category/edit', data: { ...data } })
}
// 分类管理-删除
export function categoryMgtDelete (id) {
    return appAxios({ method: 'GET', url: '/category/del' , params: { id: id }})
}
